"""
冒险模式第 1 关
"""
from src import image, map, plants
from src.plants.seed import seed_bank

# 地图对象
adventure_map_obj = None
# 植物种子银行对象
seed_bank_obj = None


def adventure001():
    global adventure_map_obj
    if adventure_map_obj is None:
        adventure_map_obj = map.Map(img=image.map_bg_grass_full)
    adventure_map_obj.draw()
    global seed_bank_obj
    if seed_bank_obj is None:
        seed_bank_obj = seed_bank.SeedBank()
        seed_bank_obj.set_seed_card(0, plants.SUNFLOWER)
    if adventure_map_obj.is_loaded_to_right():
        seed_bank_obj.draw()
    pass
